package com.aikon.wht.innerclass;

import java.util.function.Function;

/**
 * @author haitao.wang
 */
public abstract class AbstractInner {

    public static void main(String[] args) {
        new Function<String, String>() {
            @Override
            public String apply(String s) {
                return s + s;
            }
        }.apply("S1");
        String s2 = "S2";
        Function<Long, String> f1 = (Long ll) -> ll.toString();
        Function<String, Integer> f2 = (String s) -> Integer.valueOf(s);
        System.out.println(f1.andThen(f2).apply(6L));
    }
}
